package in.abip.chisame.model;

/**
 * MoodLights active record.
 * 
 * @author Julot
 * @since Wednesday, April 20th, 2011
 */
public class MoodLights extends CActiveRecord {
	public Integer moodId = null;
	public Integer lightId = null;
	public Integer value = null;
	
	public static MoodLights model() {
		return new MoodLights();
	}
	
	private Mood _mood = null;
	
	public Mood getMood() {
		if (_mood == null) _mood = (Mood) Mood.model().findByPk(moodId);
		return _mood;
	}
	
	private Light _light = null;
	
	public Light getLight() {
		if (_light == null) {
			_light = (Light) Light.model().findByPk(lightId);
		}
		return _light;
	}
}
